/* Home版块中的二级路由 */
const homeRoutes = [{
    path: "",
    redirect: "/home/controlpanel",
}, {
    path: "controlpanel",
    name: "controlpanel",
    meta: {
        title: "控制面板",
        role: "",
        icon: "el-icon-menu",
        submenu: false,
        level: 2
    },
    component: () => import("@/views/ControlPanel.vue")
}, {
    path: "classification",
    name: "classification",
    meta: {
        title: "分类管理",
        role: "XFP001",
        icon: "el-icon-tickets",
        submenu: false,
        level: 2
    },
    component: () => import("@/views/ClassiFication.vue")
}, {
    path: "goodsmanager",
    name: "goodsmanager",
    meta: {
        title: "商品管理",
        role: "XFP002",
        icon: "el-icon-shopping-cart-full",
        submenu: false,
        level: 2
    },
    component: () => import("@/views/GoodsManager.vue"),
}, {
    path: "membermanager",
    name: "membermanager",
    meta: {
        title: "会员管理",
        role: "XFP003",
        icon: "el-icon-user",
        submenu: false,
        level: 2
    },
    component: () => import("@/views/MemberManager.vue"),
}, {
    path: "ordermanager",
    name: "ordermanager",
    meta: {
        title: "订单管理",
        role: "XFP004",
        icon: "el-icon-s-order",
        submenu: false,
        level: 2
    },
    component: () => import("@/views/OrderManager.vue"),
}, {
    path: "bannersetting",
    name: "bannersetting",
    meta: {
        title: "轮播图设置",
        role: "XFP005",
        icon: "el-icon-picture-outline",
        submenu: true,
        level: 2
    },
    component: () => import("@/views/Home/BannerSetting.vue"),
}, {
    path: "goodssetting",
    name: "goodssetting",
    meta: {
        title: "热销商品设置",
        role: "XFP006",
        icon: "el-icon-wallet",
        submenu: true,
        level: 2
    },
    component: () => import("@/views/Home/GoodsSetting.vue"),
}, {
    path: "productsetting",
    name: "productsetting",
    meta: {
        title: "新品上线设置",
        role: "XFP007",
        icon: "el-icon-position",
        submenu: true,
        level: 2
    },
    component: () => import("@/views/Home/ProductSetting.vue"),
}, {
    path: "recommendsetting",
    name: "recommendsetting",
    meta: {
        title: "为你推荐设置",
        role: "XFP008",
        icon: "el-icon-thumb",
        submenu: true,
        level: 2
    },
    component: () => import("@/views/Home/RecommendSetting.vue"),
}];
export default homeRoutes;